home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
windows
/
wdj1096.zip
/
ZOLMAN.ZIP
/
DRAW.ZIP
/
DRAWCTL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-22
|
2KB
|
73 lines
// DrawCtl.h : Declaration of the CDrawCtrl OLE control class.
/////////////////////////////////////////////////////////////////////////////
// CDrawCtrl : See DrawCtl.cpp for implementation.
class CMyParkingWnd;
class CDrawCtrl : public COleControl
{
DECLARE_DYNCREATE(CDrawCtrl)
protected:
CEdit m_edEdit;
CButton m_btnButton;
CMyParkingWnd m_wndParkingWnd;
// Constructor
public:
CDrawCtrl();
// Overrides
// Drawing function
virtual void OnDraw(
CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
// Persistence
virtual void DoPropExchange(CPropExchange* pPX);
// Reset control state
virtual void OnResetState();
// Implementation
protected:
~CDrawCtrl();
DECLARE_OLECREATE_EX(CDrawCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CDrawCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CDrawCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CDrawCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CDrawCtrl)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CDrawCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CDrawCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CDrawCtrl)
// NOTE: ClassWizard will add and remove enumeration elements here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DISP_ID
};
};